package com.ruoyi.project.drug.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.math.BigDecimal;

public class DrugDrug extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 药品ID */
    private Long drugId;

    /** 药品名称 */
    @Excel(name = "药品名称")
    private String drugName;

    /** 药品编码 */
    @Excel(name = "药品编码")
    private String drugCode;

    /** 药品关键字 */
    @Excel(name = "药品关键字")
    private String drugKey;

    /** 药品类型 */
    @Excel(name = "药品类型")
    private String drugType;

    /** 处方类型 */
    @Excel(name = "处方类型")
    private String drugRtType;

    /** 单位 */
    @Excel(name = "单位")
    private String drugUnit;

    /** 处方价格 */
    @Excel(name = "处方价格")
    private BigDecimal drugRtPrice;

    /** 库存量 */
    @Excel(name = "库存量")
    private Long drugStocks;

    /** 预警值 */
    @Excel(name = "预警值")
    private Long drugWarning;

    /** 换算量 */
    @Excel(name = "换算量")
    private Long drugConversion;

    /** 状态 */
    @Excel(name = "状态")
    private Long drugStatus;

    /** 厂家ID */
    @Excel(name = "厂家ID")
    private Long factId;
    /** 厂家 */
    @Excel(name = "厂家")
    private DrugFactory factory;
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("drugId", getDrugId())
                .append("drugName", getDrugName())
                .append("drugCode", getDrugCode())
                .append("drugKey", getDrugKey())
                .append("drugType", getDrugType())
                .append("drugRtType", getDrugRtType())
                .append("drugUnit", getDrugUnit())
                .append("drugRtPrice", getDrugRtPrice())
                .append("drugStocks", getDrugStocks())
                .append("drugWarning", getDrugWarning())
                .append("drugConversion", getDrugConversion())
                .append("drugStatus", getDrugStatus())
                .append("factId", getFactId())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("factory", getFactory())
                .toString();
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getDrugId() {
        return drugId;
    }

    public void setDrugId(Long drugId) {
        this.drugId = drugId;
    }

    public String getDrugName() {
        return drugName;
    }

    public void setDrugName(String drugName) {
        this.drugName = drugName;
    }

    public String getDrugCode() {
        return drugCode;
    }

    public void setDrugCode(String drugCode) {
        this.drugCode = drugCode;
    }

    public String getDrugKey() {
        return drugKey;
    }

    public void setDrugKey(String drugKey) {
        this.drugKey = drugKey;
    }

    public String getDrugType() {
        return drugType;
    }

    public void setDrugType(String drugType) {
        this.drugType = drugType;
    }

    public String getDrugRtType() {
        return drugRtType;
    }

    public void setDrugRtType(String drugRtType) {
        this.drugRtType = drugRtType;
    }

    public String getDrugUnit() {
        return drugUnit;
    }

    public void setDrugUnit(String drugUnit) {
        this.drugUnit = drugUnit;
    }

    public BigDecimal getDrugRtPrice() {
        return drugRtPrice;
    }

    public void setDrugRtPrice(BigDecimal drugRtPrice) {
        this.drugRtPrice = drugRtPrice;
    }

    public Long getDrugStocks() {
        return drugStocks;
    }

    public void setDrugStocks(Long drugStocks) {
        this.drugStocks = drugStocks;
    }

    public Long getDrugWarning() {
        return drugWarning;
    }

    public void setDrugWarning(Long drugWarning) {
        this.drugWarning = drugWarning;
    }

    public Long getDrugConversion() {
        return drugConversion;
    }

    public void setDrugConversion(Long drugConversion) {
        this.drugConversion = drugConversion;
    }

    public Long getDrugStatus() {
        return drugStatus;
    }

    public void setDrugStatus(Long drugStatus) {
        this.drugStatus = drugStatus;
    }

    public Long getFactId() {
        return factId;
    }

    public void setFactId(Long factId) {
        this.factId = factId;
    }

    public DrugFactory getFactory() {
        return factory;
    }

    public void setFactory(DrugFactory factory) {
        this.factory = factory;
    }
}
